package cn.leelei.springsm.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 配置通用mapper
 * @author Administrator
 *
 */
@Table(name="users")
public class User {
	@Id
	 private Integer id	;
	 @Column
	 private String user_name   ;
	 @Column
	 private String password    ;
	 @Column
	 private Integer age        ;
	 
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", user_name=" + user_name + ", password=" + password + ", age=" + age + "]";
	}
	public User(Integer id, String user_name, String password, Integer age) {
		super();
		this.id = id;
		this.user_name = user_name;
		this.password = password;
		this.age = age;
	}
	public User() {
		super();
		// TODO Auto-generated constructor stub
	}

	 
}
